package com.ruoyi.mdm.domain;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import java.math.BigDecimal;

@Data
@Document(indexName = "sku_info") // 索引名称
public class SkuInfoEntity {
    @Id
    private String id;

    /**
     * 关键字
     */
    @Field(name = "keyword")
    private String keyword;

    /**
     * sku_id
     */
    @Field(name = "sku_id")
    private Long skuId;

    /**
     * 所属品牌代码
     */
    @Field(name = "owner_id")
    private String ownerId;

    /**
     * 所属品牌名称
     */
    @Field(name = "owner_name")
    private String ownerName;

    /**
     * 商品编号
     */
    @Field(name = "goods_code")
    private String goodsCode;

    /**
     * 商品名称(中文)
     */
    @Field(name = "goods_name")
    private String goodsName;

    /**
     * 商品名称(英文)
     */
    @Field(name = "goods_name_en")
    private String goodsNameEn;

    /**
     * 产品中文简称
     */
    @Field(name = "goods_short_name")
    private String goodsShortName;

    /**
     * 商品条码1
     */
    @Field(name = "bar_code")
    private String barCode;

    /**
     * sap商品编号
     */
    @Field(name = "sap_product_cd")
    private String sapProductCd;

    /**
     * 品牌
     */
    @Field(name = "brand_id")
    private String brandId;

    /**
     * line
     */
    @Field(name = "line_id")
    private String lineId;

    /**
     * subline
     */
    @Field(name = "sub_line_id")
    private String subLineId;

    /**
     * 大分类
     */
    @Field(name = "dept_id")
    private String deptId;

    /**
     * 中分类
     */
    @Field(name = "class_id")
    private String classId;

    /**
     * 小分类
     */
    @Field(name = "sub_class_id")
    private String subClassId;

    /**
     * 净含量
     */
    @Field(name = "net_weight")
    private Long netWeight;

    /**
     * 净含量单位
     */
    @Field(name = "net_weight_unit")
    private String netWeightUnit;

    /**
     * 销售单价
     */
    @Field(name = "sale_price")
    private BigDecimal salePrice;

    /**
     * 销售开始日
     */
    @Field(name = "sale_begin_date")
    private String saleBeginDate;

    /**
     * 销售终止日
     */
    @Field(name = "sale_end_date")
    private String saleEndDate;

    /**
     * 商品区分(01：完成品 02：非完成品);01：完成品 02：非完成品
     */
    @Field(name = "goods_type")
    private String goodsType;

    /**
     * 商品子区分(1:完成品；2:中小样;3:贩促品;4:答谢品;5:试用品;6服务类 );1:完成品；2:中小样;3:贩促品;4:答谢品;5:试用品;6服务类
     */
    @Field(name = "goods_sub_type")
    private String goodsSubType;

    /**
     * 更新日期
     */
    @Field(name = "update_date")
    private String updateDate;

    /**
     * 传输日期
     */
    @Field(name = "transfer_date")
    private String transferDate;

    /**
     * 数据状态
     */
    @Field(name = "data_status")
    private String dataStatus;

    /**
     * 新商品分类编号
     */
    @Field(name = "new_category_id")
    private String newCategoryId;

    /**
     * 现地美容法1代码
     */
    @Field(name = "localbeamtdcd1")
    private String localbeamtdcd1;

    /**
     * 现地美容法1英文
     */
    @Field(name = "localbeamtdennm1")
    private String localbeamtdennm1;

    /**
     * 现地美容法1中文
     */
    @Field(name = "localbeamtdchinm1")
    private String localbeamtdchinm1;

    /**
     * 现地美容法2代码
     */
    @Field(name = "localbeamtdcd2")
    private String localbeamtdcd2;

    /**
     * 现地美容法2英文
     */
    @Field(name = "localbeamtdennm2")
    private String localbeamtdennm2;

    /**
     * 现地美容法2中文
     */
    @Field(name = "localbeamtdchinm2")
    private String localbeamtdchinm2;

    /**
     * 现地美容法3代码
     */
    @Field(name = "localbeamtdcd3")
    private String localbeamtdcd3;

    /**
     * 现地美容法3英文
     */
    @Field(name = "localbeamtdennm3")
    private String localbeamtdennm3;

    /**
     * 现地美容法3中文
     */
    @Field(name = "localbeamtdchinm3")
    private String localbeamtdchinm3;

    /**
     * 新美容法3
     */
    @Field(name = "producthierarchylv456")
    private String producthierarchylv456;

    /**
     * 产品号组
     */
    @Field(name = "prod_num_cd")
    private String prodNumCd;

    /**
     * 产品英文名称
     */
    @Field(name = "prod_num_engnm")
    private String prodNumEngnm;

    /**
     * 产品中文名称
     */
    @Field(name = "prod_num_chinm")
    private String prodNumChinm;

    /**
     * 现地产品线
     */
    @Field(name = "brand_cd")
    private String brandCd;

    /**
     * 现地品牌名称
     */
    @Field(name = "brand_nm")
    private String brandNm;

    /**
     * 产品线code
     */
    @Field(name = "brandengnm")
    private String brandengnm;

    /**
     * 产品线code明细
     */
    @Field(name = "brandengnm_detail")
    private String brandengnmDetail;

    /**
     * etl时间
     */
    @Field(name = "etl_insert_time")
    private String etlInsertTime;

    /**
     * 产品spu编码
     */
    @Field(name = "spu_cd")
    private String spuCd;

    /**
     * 产品spu
     */
    @Field(name = "spu")
    private String spu;

    /**
     * 业务日期
     */
    @Field(name = "biz_date")
    private String bizDate;

    /**
     * 同步日期
     */
    @Field(name = "snyc_date")
    private String snycDate;

    /**
     * 销售渠道
     */
    @Field(name = "sku_sales_channel")
    private String skuSalesChannel;

    /**
     * 是否推荐(y：是，n：否)
     */
    @Field(name = "sku_recommend_flag")
    private String skuRecommendFlag;

    /**
     * skum_id
     */
    @Field(name = "skum_id")
    private Long skumId;

    /**
     * skum编码
     */
    @Field(name = "skum_code")
    private String skumCode;

    /**
     * skum中文名称
     */
    @Field(name = "skum_name")
    private String skumName;

    /**
     * skum英文名称
     */
    @Field(name = "skum_name_en")
    private String skumNameEn;

    /**
     * skum简称
     */
    @Field(name = "skum_short_name")
    private String skumShortName;

    /**
     * 净含量
     */
    @Field(name = "skum_net_weight")
    private String skumNetWeight;

    /**
     * 净含量单位
     */
    @Field(name = "skum_net_weight_unit")
    private String skumNetWeightUnit;

    /**
     * 销售价格
     */
    @Field(name = "skum_sale_price")
    private BigDecimal skumSalePrice;

    /**
     * spu_id
     */
    @Field(name = "spu_id")
    private Long spuId;

    /**
     * spu编码
     */
    @Field(name = "spu_code")
    private String spuCode;

    /**
     * spu中文名称
     */
    @Field(name = "spu_name")
    private String spuName;

    /**
     * spu英文名称
     */
    @Field(name = "spu_name_en")
    private String spuNameEn;

    /**
     * spu简称
     */
    @Field(name = "spu_short_name")
    private String spuShortName;

    /**
     * spu昵称
     */
    @Field(name = "spu_nick_name")
    private String spuNickName;

    /**
     * spu图片1
     */
    @Field(name = "spu_image_one")
    private String spuImageOne;

    /**
     * spu图片2
     */
    @Field(name = "spu_image_two")
    private String spuImageTwo;

    /**
     * spu图片3
     */
    @Field(name = "spu_image_three")
    private String spuImageThree;

    /**
     * spu图片4
     */
    @Field(name = "spu_image_four")
    private String spuImageFour;

    /**
     * spu图片5
     */
    @Field(name = "spu_image_five")
    private String spuImageFive;

    /**
     * 服务渠道编码
     */
    @Field(name = "channel_code")
    private String channelCode;

    /**
     * 产品综合评分
     */
    @Field(name = "total_score")
    private BigDecimal totalScore;

    /**
     * 修改的容量
     */
    @Field(name = "content")
    private String content;

    /**
     * 原始容量
     */
    @Field(name = "netcontent")
    private String netcontent;

    /**
     * 容量单位
     */
    @Field(name = "content_unit")
    private String contentUnit;

    /**
     * 分页
     */
    private int page = 0;

    /**
     * 每页条数
     */
    private int size = 1000000;

}